<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h2>箭头函数和普通函数区别</h2>
</body>
<script>
    var name = '李四'
        //普通this
    const obj = {
        name: '张三',
        age: 20,
        getInfo: function() {

            const fn = () => {
                console.log(arguments)
                console.log('普通函数：', this.name) //???
            }

            fn()
        }
    }

    obj.getInfo()
</script>

</html>